﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MyLib.Web.UI {
	/// <summary>
	/// 
	/// </summary>
	[SupportsEventValidation]
	[ToolboxData("<{0}:MyDownloadButton runat=\"server\" />")]
	public class MyDownloadButton : MyButton {
		/// <summary>
		/// 
		/// </summary>
		/// <param name="e"></param>
		protected override void OnInit(EventArgs e) {
			base.OnInit(e);

			var sm = ScriptManager.GetCurrent(this.Page);
			if (sm != null) {
				sm.RegisterPostBackControl(this);
			}
		}
	} // end of MyDownloadButton.
}
